

package com.lh.api.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Date 2020/5/13 0013 14:18
 * @Author GaoZien
 * @Desc 添加修改地址表单
 */
@Data
@ApiModel(value = "添加修改地址表单")
public class AddressForm {

    @ApiModelProperty(value = "收件地址id,编辑地址时填写")
    private Long uaid;

    @ApiModelProperty(value = "收货人",required = true)
    @NotBlank(message="recipients is required")
    @Length(max = 20, message = "Name can not be more than 20 characters")
    private String recipients;

    @ApiModelProperty(value = "收货人手机号",required = true)
    @NotBlank(message="phone is required")
    private String phone;

    @ApiModelProperty(value = "区域",required = true)
    @NotBlank(message="region is required")
    @Length(max = 100, message = "Region can not be more than 100 characters")
    private String region;

    @ApiModelProperty(value = "详细地址",required = true)
    @NotBlank(message="detailed is required")
    @Length(max = 100, message = "Details can not be more than 100 characters")
    private String detailed;

}
